package main.service;

import main.mapper.MainMapper;
import main.pojo.User;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.ArrayList;

@Service
public class MainService {

    @Resource
    private MainMapper mapper;

    public ArrayList<User> index() {
        return (ArrayList<User>) mapper.showAllUser();
    }
}
